#ifndef JNI_BVDisplay_H
#define JNI_BVDisplay_H

#ifdef __cplusplus
extern "C" {
#endif

enum {
	BVDisplay_ErrCode_FAILED = -0xdead,
	BVDisplay_ErrCode_OK = 0,
};

typedef int BVDisplay_ErrCode;
typedef void* BVDisplay_Handle;
typedef char* BVDisplay_Frame;
typedef void* BVDisplay_HWND;

BVDisplay_ErrCode BVDisplay_Open();

BVDisplay_Handle BVDisplay_DeviceInit(BVDisplay_HWND hWnd, int width, int height);

BVDisplay_ErrCode BVDisplay_DrawAndPresentFrame(BVDisplay_Handle h, BVDisplay_Frame yuv);

BVDisplay_ErrCode BVDisplay_ClearScreen(BVDisplay_Handle h, int color);

void BVDisplay_ReleaseDevice(BVDisplay_Handle h);

void BVDisplay_Close();

#ifdef __cplusplus
}
#endif
#endif
